<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Search Result</title>
</head>

<body>

{% if len(result_list) > 0 %}

<TABLE BORDER="1"> 
  <CAPTION> Résultat de la recherche </CAPTION> 
  <TR> 
 <TH> Date: </TH> 
 <TH> Opérateur: </TH> 
 <TH> Sujet: </TH>
 <TH>  </TH>
  </TR> 
{% for inter in result_list %}
  <TR> 
 <TD> {{str(inter["date"])}} </TD> 
 <TD> {{inter["operator"]}} </TD> 
 <TD> {{inter["subject"]}} </TD>
 <TD> 
 <A HREF="xtrack/intervention?id={{inter['_id']}}">Voir</A>
 
 </TD> 
  </TR>
{% end %}
</TABLE> 

{% else %}
<p>Aucun résultat trouvé !</p>
{% end %}
</body>
</html>